package com.item.demo.config;

import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;

public class ApiConfig {
	static String API_CONFIG_FILE_NAME = "src\\main\\resources\\application.properties";
	static Properties properties = new Properties();

	static {
		try {
			properties.load(new FileInputStream(new File(API_CONFIG_FILE_NAME)));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static String getBaseUrl() {
		return properties.getProperty("baseUrl");
	}

	public static String getApiId() {
		return properties.getProperty("apiId");
	}

	public static String getApiSecret() {
		return properties.getProperty("apiSecret");
	}
}
